import docx

def readDocx(filename):
     got = docx.Document(filename)
     i=0
     src=[]
     for paragraph in got.paragraphs:
          for run in paragraph.runs:
               src.append({
                   'num': i,
                   'style':paragraph.style.name,
                   'bold':run.bold,
                   'article': [{
                       'bold': run.style.font.bold,
                       'style': run.style,
                       'text': run.text ,
                       'italic': run.style.font.italic
                   }]
               })
               print(src)
          i+=1
     return src

